Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 10 or more consecutive underscores with 9 in word clue used in xAP… #90

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

fnoks
Copy link
Collaborator

@fnoks fnoks commented Mar 1, 2024

Some authors are using 10 or more consecutive underscores in the Clue field. Since we're using the 10 underscores in the xAPI statement to signal a "blank", this becomes incompatible.

I must admit I haven't tested this code change, but theorietically it should do the trick.

Copy link
Owner

@otacke otacke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why someone would set the clue to underscores, but this should resolve the problem, yes.

Should the __________ placeholder in the report module (https://github.com/h5p/h5p-php-report/blob/0968db5d36b7ed5e19eff63ec06c36d75593044c/type-processors/fill-in-processor.class.php#L13) be replaced by a UUID or similar maybe? Or is it needed somewhere to also visually indicate blanks in plain mode?

@otacke otacke merged commit 804bca5 into master Mar 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants